package life.majiang.community.exception;

public enum CoutomizeErrorCode implements ICoutomizeErrorCode{
    QUESTION_NOT_FIND(2001,"你找的问题不存在，要不换各试试！！！"),
    TARGET_PARAM_NOT_FIND(2002,"未选中任何问题和评论回复！！！"),
    NO_LOGIN(2003,"当前操作需要登录，请登录后重试！！！"),
    SYS_ERROR(2004,"服务器冒烟了要不然稍后在试试"),
    TYPE_PARAM_WRONG(2005,"评论内容类型错误"),
   COMMENT_NOT_FIND(2006,"你评论的问题不存在"),
   CONTENT_IS_EMPTY(2007,"评论内容不能为空"),
   READ_NOTIFICATION_FAIL(2008,"小子，你这是犯罪，偷读别人的信息"),
    NOTIFICATION_NOT_FIND(2009,"消息莫不是不翼而飞！"),
    FILE_UPLOAD_FAIL(2010,"图片上传失败！")

    ;
    private String message;
    private Integer code;

    CoutomizeErrorCode( Integer code,String message) {
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
